Declaring a variable, Data types


Description:

    Variables are declared using the "var" keyword. All non-initialized variables will be automatically initialized to the number data type and will have the null value (0).

Example
	var x;
	var y,z;
	var a,b="test",c=0,d=new SomeClass();
	var arr=[1,2,3];
	var[] arr;